SET MYSQL_HOME=C:\Program Files\MySQL\MySQL Server 5.1\bin
SET WORK_PATH=C:\work\eim-project\db
cd %MYSQL_HOME%
mysql -h127.0.0.1 -uroot -proot mydb <%WORK_PATH%/clean_all.sql >%WORK_PATH%/clean_all.log